<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <link href="assets/css/style.css" rel="stylesheet"/>
    <script type="text/javascript" src="assets/js/jquery-1.7.2.js"></script>
    <script type="text/javascript" src="assets/js/content-box/content-box.js"></script><style type="text/css">
            body {
                padding-top:60px;
                padding-bottom:40px;
            }
        </style>
  </head>
  
  <body>
  <div  class="container">
    <jsp:include page="../Template/home_top.jsp"></jsp:include>
    <div id="" class="row">
      <div class="span9">
      		<!-- 文章 区 -->
      		<div class="row" >
          		<h3>文章</h3>
          		
          		<s:iterator value="articles.list">
    			<div>
    			<a href="article_eachArticle?articleId=<s:property value="id"/>">
    				<s:property value="title" /> 
    			</a>
    			<br/>
    			<b>writed by&nbsp;&nbsp;&nbsp;</b><s:property value="member.name" />
    			<span><b>post at&nbsp;&nbsp;&nbsp;</b><s:date name="postdate" format="yyyy-MM-dd HH:mm:ss" /></span>
    			</div>
    			</s:iterator>
			</div>
      		<!-- 帖子 区 -->
       		<div id="showallties" align="" class="row">
       		<h3>热帖</h3>
			
	
	 			<s:iterator value="tieziPage.resultlist">
				<div>
				<a href="tzReplyAction_GetSingleTieAndReply.action?replyer=${member.name}&tiezi_id=${id}&curPage=1">
					<s:property value="tags"/>
				</a>
				<br/>
				<b>writed by </b>&nbsp;&nbsp;&nbsp;
			 	<s:property value="member.name"/>
			 
			 	<span><b>post at </b>&nbsp;&nbsp;&nbsp;
			 	<s:date name="postdate" format="yyyy-MM-dd HH:mm:ss" />
			 	</span>
				</div>
				</s:iterator>
			</div>

        	<!-- 资讯 区 -->
        	<div class="row">
        	<h3>业界资讯</h3>
        		<div id="newsTitles">
	    		<s:iterator value="newsPager.data" id="anews">
	    		<div>
	    			<a href="news/news_look?id=<s:property value="#anews.id"/>"><s:property value="#anews.title"/></a> 
	    		</div>
	    		</s:iterator>
	    		</div>
        	</div>
      		<!-- 下载 区 -->
      		<div class="row">
      		<h3>下载区</h3>
      		<s:if test="detools.size > 0">				
				   
			    <s:iterator value="detools" var="detool">
			    	
			    	<div>
			    	<h5>
			   		<s:property value="name"/>
					</h5>
					<div>
					下载次数：	
					<s:property value="downloadcount"/>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			   		发布时间:
			   		<s:date name="uploadtime" format="yyyy-MM-dd HH:mm:ss" />
			   		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			   		<a href="front/detool_showDetail?id=${detool.id}">查看详情</a>
			   		
			   		<a href="front/detool_download?id=${detool.id}">点击下载</a>
			   		</div>
			   		 </div>  		
			   	</s:iterator>
		
			   	</s:if>
			   	<s:else>没有可供下载的应用，详情可咨询管理员</s:else>
			</div>
      		<!-- 技术 区 -->
      	
        </div><!-- span9 -->    
            
            <div class="span3">
            	<div class="well">
            		<div class="">
            			<h3>管理入口</h3>
            		</div>
            		<div class="">
            			<a href="member_memberCenter">用户中心</a>
	                    <br>
	                    <a href="admin/member_memberList">管理员中心</a>
               </div>
            		
            </div>
    		
    </div>
    </div>
    <div style="margin-bottom:20px;"></div>
    <jsp:include page="../Template/home_footer.jsp"/>
